package com.mxw.account.controller;

import com.mxw.account.dto.AccountDTO;
import com.mxw.account.feign.AccountFeign2;
import com.mxw.commons.restful.Result;
import com.mxw.component.security.annotation.OnlyIntranetAccess;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RestController;

/** @Description @Author RingKo @Date 2021/8/23 22:13 @Version 1.0 */
@Slf4j
@Validated
@RestController
public class Account2Controller implements AccountFeign2 {
  @OnlyIntranetAccess
  @Override
  public Result<String> testFeign(AccountDTO accountDTO) {
    System.out.println(accountDTO);
    return Result.respond("success");
  }
}
